* fileio.c (barf_or_query_if_file_exists): Use S_ISDIR.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Jul 2011 17:50:12 +0000 (10:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Jul 2011 17:50:12 +0000 (10:50 -0700)
commitef3e3e039e0d4d48800caa4621e4c43175fb9f39
treed695bf1ad98186b2d3f577bf5674199815f61820
parent521c01f683c7dfa3557101b56ec7777c7d2e605c
* fileio.c (barf_or_query_if_file_exists): Use S_ISDIR.

This is more efficient than Ffile_directory_p and avoids a minor race.
src/ChangeLog
src/fileio.c